%% -*- mode:erlang -*-
{minimum_otp_vsn, "21.0"}.

{deps,
 [{snabbkaffe, {git, "https://gitee.com/fastdgiot/snabbkaffe", {tag, "1.0.0"}}},
  {gen_rpc, {git, "https://gitee.com/fastdgiot/gen_rpc", {tag, "2.8.1"}}},
  {replayq, {git, "https://gitee.com/fastdgiot/replayq", {tag, "0.3.1"}}},
  {mnesia_rocksdb, {git, "https://gitee.com/fastdgiot/mnesia_rocksdb", {tag, "0.1.10"}}}
 ]}.

{erl_opts,
 [warn_unused_vars,
  warn_shadow_vars,
  warn_unused_import,
  warn_obsolete_guard,
  warnings_as_errors,
  debug_info,
  compressed,
  {d, 'MRIA_HAS_ROCKSDB', true}
 ]}.

{validate_app_modules, true}.

{xref_checks,
 [undefined_function_calls, undefined_functions,
  locals_not_used, deprecated_function_calls,
  warnings_as_errors, deprecated_functions
 ]}.

{eunit_opts,
 [verbose,
  {report,{eunit_surefire,[{dir,"."}]}}
 ]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.

{dialyzer,
 [{warnings, [unknown]},
  {plt_extra_apps, [replayq, mnesia, mnesia_rocksdb]}
 ]}.

{profiles,
 [{test,
   [{plugins, [{coveralls, {git, "https://github.com/emqx/coveralls-erl", {branch, "github"}}}]},
    {deps, [{meck, "0.8.13"},
            {proper, "1.3.0"}
           ]},
    {erl_opts, [debug_info]}
   ]}
 %% , {concuerror,
 %%    [{overrides,
 %%      [ {add, snabbkaffe,
 %%         [{erl_opts, [{d, 'CONCUERROR'}]}]}
 %%      , {add, mria,
 %%         [{erl_opts, [{d, 'CONCUERROR'}]}]}
 %%      ]}
 %%    ]}
 ]}.

{ct_readable, true}.
